package com.zp.self.javaBase.extend;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * Created by peng.zeng on 2021/5/9 14:05
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class DogUtil extends Animal{
    public DogUtil(){
        super("旺财",4);
    }

    public DogUtil(String name , int leg){
        super(name,leg);
    }

    @Override
    public String toString() {
        return super.toString();
    }
}
